//
//  DataService.m
//  HuiWenMovie
//
//  Created by niceDay on 15/7/21.
//  Copyright (c) 2015年 computer. All rights reserved.
//

#import "DataService.h"

@implementation DataService
+(id)initWitnJsionFileName:(NSString *)fileName{
    
    NSString *filePath = [[NSBundle mainBundle] pathForResource:fileName ofType:nil];

    NSData *data = [NSData dataWithContentsOfFile:filePath];
    id arrayOrDic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];

    return arrayOrDic;
}
@end
